package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.BeamRealtimeHisMapper;
import com.ruoyi.project.domain.BeamRealtimeHis;
import com.ruoyi.project.service.IBeamRealtimeHisService;

/**
 * 浆纱历史记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-28
 */
@Service
public class BeamRealtimeHisServiceImpl implements IBeamRealtimeHisService 
{
    @Autowired
    private BeamRealtimeHisMapper beamRealtimeHisMapper;

    /**
     * 查询浆纱历史记录
     * 
     * @param id 浆纱历史记录主键
     * @return 浆纱历史记录
     */
    @Override
    public BeamRealtimeHis selectBeamRealtimeHisById(Long id)
    {
        return beamRealtimeHisMapper.selectBeamRealtimeHisById(id);
    }

    /**
     * 查询浆纱历史记录列表
     * 
     * @param beamRealtimeHis 浆纱历史记录
     * @return 浆纱历史记录
     */
    @Override
    public List<BeamRealtimeHis> selectBeamRealtimeHisList(BeamRealtimeHis beamRealtimeHis)
    {
        return beamRealtimeHisMapper.selectBeamRealtimeHisList(beamRealtimeHis);
    }

    /**
     * 新增浆纱历史记录
     * 
     * @param beamRealtimeHis 浆纱历史记录
     * @return 结果
     */
    @Override
    public int insertBeamRealtimeHis(BeamRealtimeHis beamRealtimeHis)
    {
        return beamRealtimeHisMapper.insertBeamRealtimeHis(beamRealtimeHis);
    }

    /**
     * 修改浆纱历史记录
     * 
     * @param beamRealtimeHis 浆纱历史记录
     * @return 结果
     */
    @Override
    public int updateBeamRealtimeHis(BeamRealtimeHis beamRealtimeHis)
    {
        return beamRealtimeHisMapper.updateBeamRealtimeHis(beamRealtimeHis);
    }

    /**
     * 批量删除浆纱历史记录
     * 
     * @param ids 需要删除的浆纱历史记录主键
     * @return 结果
     */
    @Override
    public int deleteBeamRealtimeHisByIds(Long[] ids)
    {
        return beamRealtimeHisMapper.deleteBeamRealtimeHisByIds(ids);
    }

    /**
     * 删除浆纱历史记录信息
     * 
     * @param id 浆纱历史记录主键
     * @return 结果
     */
    @Override
    public int deleteBeamRealtimeHisById(Long id)
    {
        return beamRealtimeHisMapper.deleteBeamRealtimeHisById(id);
    }
}
